import api from './index'

// 储值卡页面
export default {
	// 储值卡列表
	fetchStoredList: (params) => api.get('/system/value/card/appMyValue', params),
	// 储值卡详情
	fetchStoredDetail: (id) => api.get('/system/value/card/' + id),
	// 储值卡充值门店列表
	rechargeShopList: (params) => api.get('/system/store/allList', params),
	// 储值卡充值可选列表
	fetchStoredType: (params) => api.get('/system/value/card/rule/pullDown/list', params),
	// 储值卡充值可选项详情
	fetchStoredTypeDetail: (id) => api.get('/system/value/card/rule/' + id),
	// 储值卡消费记录
	// fetchRecordList: (params) => api.get('/system/value/card/detail/appList', params),

	fetchRecordList: (params) => api.get('/system/value/card/detail/appListByRegionId', params),
	// 储值卡充值
	rechargeCard: (params) => api.post('/system/value/card/order/payment', params),

	//充值记录
	appletBuyCardDetail: (params) => api.get('/system/value/card/detail/appletBuyCardDetail', params),

}